<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrderMentionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('order_mention', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamps();

            $table->integer('order_id')->unsigned()->unique()->comment('订单id');

            $table->timestamp('start_time')->comment('开始时间');

            $table->timestamp('end_time')->comment('结束时间');


        });

        DB::statement("ALTER TABLE `order_mention` COMMENT='订单自提时间表'");//表注释

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mention_order');
    }
}
